<template>
  <div class="xh-card">
    <div v-if="title" class="xh-title xh-font-dream">{{ title }}</div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: ["title"],
};
</script>

<style scoped>
.xh-title {
  height: 30px;
  line-height: 30px;
  text-align: left;
  padding-left: 10px;
}
</style>
